describe("api_alp", function() {
	beforeEach(function() {
//		App.initSession();
	});

	describe("_processValidate2FAToken", function() {
		var response;
		beforeEach(function() {
			response = {
				twoFAValidateResponse : {
					responseHeader : {
						status : 1,
						errorMessage : 'error'
					},
					authorization : {
						status : 1
					}
				}
			};
			var callback = jasmine.createSpy('callbackValidate2FAToken');
			App.api_alp.callbackValidate2FAToken = callback;
		});
		
		it("callback to controller with success when responseHeader status equals 1", function() {
				App.api_alp._processValidate2FAToken(response);
				
				expect(App.api_alp.callbackValidate2FAToken).toHaveBeenCalledWith(null, null);
		});
		
	});
		
});
